export const week = (date) => {
  // console.log(date);
  var dataarr = date.split('-');
  var newdate = dataarr[1] + '月' + dataarr[2] + '日';
  var date = new Date(date);
  var week, day;
  day = date.getDay();
  switch (day) {
    case 0:
      week = newdate + "星期日";
      break;
    case 1:
      week = newdate + "星期一";
      break;
    case 2:
      week = newdate + "星期二";
      break;
    case 3:
      week = newdate + "星期三";
      break;
    case 4:
      week = newdate + "星期四";
      break;
    case 5:
      week = newdate + "星期五";
      break;
    case 6:
      week = newdate + "星期六";
      break;
  }
  return week;
}
